﻿<%@ Page Language="C#" MasterPageFile="~/master/main.master" AutoEventWireup="true"
    CodeFile="Default.aspx.cs" Inherits="master_Default" Title="名师讲堂" EnableViewState="false" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Title" runat="Server">
    福建师范大学 名师讲堂
</asp:Content>
<asp:Content ID="Contect3" ContentPlaceHolderID="Head" runat="server">
    <link href="css/slick/slick.css" rel="stylesheet" type="text/css" />
    <script src="js/slick/slick.min.js" type="text/javascript"></script>

    <link href="css/jquery.bxslider.css" rel="stylesheet" />
    <script src="js/jquery.bxslider.min.js" type="text/javascript"></script>
    <style type="text/css">
        li img {
            vertical-align: middle;
        }
    </style>

    <script type="text/javascript">

        jQuery(function () {

            jQuery('.autoplay').slick({
                slidesToShow: 5,
                slidesToScroll: 1,
                autoplay: true,
                autoplaySpeed: 1500
            });

            jQuery('#mainSlide').bxSlider({
                easing: 'swing',
                auto: true,
                delay: 1000,
                mode: 'fade'
            });

        });
    </script>
    <!--[if lt IE 7]>
    <div id="warn" style='border-bottom: 1px solid #F7941D; background: #FEEFDA; text-align: center; clear: both;padding:20px 0;overflow:hidden;'>
	    <div style='right: 3px; top: 3px; font-family: courier new; font-weight: bold;'>
		    <a href='#' onclick='javascript:this.parentNode.parentNode.style.display="none"; return false;'>
			    <img src='/images/ie6nomore-cornerx.jpg' style='border: none;' alt='Close this notice' />
		    </a>
	    </div>
	    <div style='width: 900px; margin: 0 auto; text-align: left; padding: 0; overflow: hidden; color: black;'>
		    <div style='width: 75px; float: left;'>
			    <img src='/images/ie6nomore-warning.jpg' alt='Warning!' />
		    </div>
		    <div style='width: 500px; float: left;'>
			    <div style='font-size: 18px; font-weight: bold; margin: 12px 0;'>
				    注意！你正在使用的IE浏览器版本过低、或是您使用的360浏览器的兼容模式
			    </div>
			    <p>为了你的浏览安全考虑和更好的浏览体验，我们建议您升级IE、或选用其他浏览器、或使用360浏览器的极速模式。</p>
		    </div>
		    <div style='width: 75px; float: left;margin-left: 20px;'>
			    <a href='http://www.firefox.com' target='_blank'>
				    <img width='49px' heigth="69px" src='/images/ie6nomore-firefox.jpg' style='border: none;'alt='获取 Firefox 3.5' />
			    </a>
		    </div>

		    <div style='width: 73px; float: left;'>
			    <a href='http://www.apple.com/safari/download/' target='_blank'>
				    <img width='49px' heigth="69px" src='/images/ie6nomore-safari.jpg' style='border: none;'alt='获取 Safari 4' />
			    </a>
		    </div>
		    <div style='float: left;'>
			    <a href='http://www.google.com/chrome' target='_blank'>
				    <img width='49px' heigth="69px" src='/images/ie6nomore-chrome.jpg' style='border: none;' alt='获取 Google Chrome' />
			    </a>
		    </div>
	    </div>
        <div>
        <a href='http://jingyan.baidu.com/article/d169e186a3dd27436611d829.html' target='_blank'>
				    <img width='49px' heigth="69px" src='/images/ie6nomore-360.jpg' style='border: none;'alt='360极速模式' />
			    </a>
        </div>
    </div>
    <![endif]-->
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Main" runat="Server">
    <form id="form1" runat="server">
        <div class="col16" style="height: 270px">
            <table>
                <tr>
                    <td>
                        <div class="col10">
                            <ul class="bxslider" id="mainSlide">
                                <asp:Repeater runat="server" ID="rpt_imgs" DataSourceID="ods滚动大图片">
                                    <ItemTemplate>
                                        <div style="width: 580px; height: 240px">
                                            <a href='<%# Eval("链接") %>' title='<%# Eval("文本") %>' >
                                                <img id="Img2" src='<%# Eval("虚目录") %>' runat="server" alt="" /></a>
                                        </div>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </ul>
                        </div>
                    </td>
                    <td>
                        <div class="col06 sidebar">
                            <section>
                                <div class="heading">
                                    <table>
                                        <tr>
                                            <td>
                                                <img src="images/title/jtjj.png" alt="讲堂简介" /></td>
                                            <td><a href="description.aspx" style="float: right" >查看全部>></a></td>
                                        </tr>
                                    </table>
                                </div>
                                <div class="content" id="description">
                                    <asp:FormView runat="server" DataSourceID="ods讲堂简介">
                                        <ItemTemplate>
                                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <asp:Label Text='<%# Eval("首页") %>' runat="server" ID="txt讲堂简介" OnDataBinding="txt讲堂简介_DataBinding" />
                                        </ItemTemplate>
                                    </asp:FormView>
                                </div>
                            </section>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
        <div class="col16" style="height: 370px">
            <table class="two">
                <tr>
                    <td class="col06 sidebar">
                        <section>
                            <div class="heading">
                                <table>
                                    <tr>
                                        <td>
                                            <img src="images/title/jtdt.png" alt="讲堂动态" /></td>
                                        <td><a id="A2" href="~/aspx/tang/Default.aspx" runat="server">更多>></a></td>
                                    </tr>
                                </table>
                            </div>
                            <div class="content">
                                <ul class="list">
                                    <asp:Repeater ID="rpt讲堂动态" runat="server" DataSourceID="ods讲堂动态" OnItemDataBound="rpt讲堂动态_ItemDataBound">
                                        <ItemTemplate>
                                            <li>
                                                <table class="two">
                                                    <tr>
                                                        <td>
                                                            <asp:HyperLink NavigateUrl='<%# Eval("讲堂ID")%>' Text='<%# Eval("标题") %>' ToolTip='<%# Eval("时间") %>' runat="server" ID="hy" Visible='<%# Eval("红字") %>' Enabled='<%# Eval("新") %>'  />
                                                            <asp:Image ImageUrl="images/new.gif" runat="server" ID="new" Visible='<%# Eval("新") %>' /></td>
                                                        <td class="right">
                                                            <%# Eval("时间","{0:[yyyy-MM-dd]}") %></td>
                                                    </tr>
                                                </table>
                                            </li>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </ul>
                            </div>
                        </section>
                    </td>
                    <td class="col06 sidebar">
                        <section>
                            <div class="heading">
                                <table>
                                    <tr>
                                        <td>
                                            <img src="images/title/xwzx.png" alt="新闻中心" /></td>
                                        <td><a id="A1" href="~/aspx/news/Default.aspx" runat="server">更多>></a></td>
                                    </tr>
                                </table>
                            </div>
                            <div class="content">
                                <ul class="list">
                                    <asp:Repeater ID="rpt新闻中心" runat="server" DataSourceID="ods新闻中心" OnItemDataBound="rpt新闻中心_ItemDataBound">
                                        <ItemTemplate>
                                            <li>
                                                <table class="two">
                                                    <tr>
                                                        <td>
                                                            <asp:HyperLink NavigateUrl='<%# Eval("新闻ID")%>' runat="server" Text='<%# Eval("标题") %>' ID="hy" Visible='<%# Eval("红字") %>' Enabled='<%# Eval("新") %>'  /><asp:Image ImageUrl="images/new.gif" runat="server" Visible='<%# Eval("新") %>' /></td>
                                                        <td class="right">

                                                            <%# Eval("发布时间","{0:[yyyy-MM-dd]}") %></td>
                                                    </tr>
                                                </table>
                                            </li>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </ul>
                            </div>
                        </section>
                    </td>
                    <td class="col04 sidebar">
                        <section>
                            <div class="heading">
                                <table>
                                    <tr>
                                        <td>
                                            <img src="images/title/msfc.png" alt="名师风采" /></td>
                                        <td><a id="A4" href="~/aspx/teacher/Default.aspx" runat="server">更多>></a></td>
                                    </tr>
                                </table>
                            </div>
                            <div class="content">
                                <script type="text/javascript">
                                    var xb5; var pics5 = ''; var links5 = ''; var texts5 = ''; var count = 5; var imgUrl5 = new Array(); var imgLink5 = new Array(); var imgText5 = new Array();<%=initstring %>  var focus_width5 = 190.0; var focus_height5 = 125.0; var text_height5 = 0; var swf_height5 = focus_height5 + text_height5; var j = 0; for (i = 1; i <= count; i++) { xb5 = order5[i]; if ((imgUrl5[xb5] != '') && (imgLink5[xb5] != '')) { if (j != 0) { pics5 = pics5 + '|'; links5 = links5 + '|'; texts5 = texts5 + '|'; } pics5 = pics5 + imgUrl5[xb5]; links5 = links5 + imgLink5[xb5]; texts5 = texts5 + imgText5[xb5]; j++; } } document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="' + focus_width5 + '" height="' + swf_height5 + '">'); document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="images/webplus.swf"><param name="quality" value="high"><param name="bgcolor" value="">'); document.write('<param name="menu" value="false"><param name=wmode value="opaque">'); document.write('<param name="FlashVars" value="pics=' + pics5 + '&links=' + links5 + '&texts=' + texts5 + '&borderwidth=' + focus_width5 + '&borderheight=' + focus_height5 + '&textheight=' + text_height5 + '">'); document.write('<embed src="images/webplus.swf"  wmode="opaque" FlashVars="pics=' + pics5 + '&links=' + links5 + '&texts=' + texts5 + '&borderwidth=' + focus_width5 + '&borderheight=' + focus_height5 + '&textheight=' + text_height5 + '" menu="false" bgcolor="#eeeeee" quality="high" width="' + focus_width5 + '" height="' + swf_height5 + '" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'); document.write('</object>');
                                </script>
                            </div>
                        </section>
                    </td>
                </tr>
                <tr>
                    <td class="col06 sidebar">
                        <section>
                            <div class="heading">
                                <table>
                                    <tr>
                                        <td>
                                            <img src="images/title/tzgg.png" alt="通知公告" /></td>
                                        <td><a id="A5" href="~/aspx/notice/Default.aspx"
                                            runat="server">更多>></a></td>
                                    </tr>
                                </table>
                            </div>
                            <div class="content">
                                <ul class="list">
                                    <asp:Repeater ID="rpt通知公告" runat="server" DataSourceID="ods通知公告" OnItemDataBound="rpt通知公告_ItemDataBound">
                                        <ItemTemplate>
                                            <li>
                                                <table class="two">
                                                    <tr>
                                                        <td>
                                                            <asp:HyperLink NavigateUrl='<%# Eval("通知公告ID")%>' runat="server" Text='<%# Eval("标题") %>' ID="hy" Visible='<%# Eval("红字") %>' Enabled='<%# Eval("新") %>'  />
                                                            <asp:Image ImageUrl="images/new.gif" runat="server" Visible='<%# Eval("新") %>' /></td>
                                                        <td class="right"><%# Eval("发布时间","{0:[yyyy-MM-dd]}") %></td>
                                                    </tr>
                                                </table>
                                            </li>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </ul>
                            </div>
                        </section>
                    </td>
                    <td class="col06 sidebar">
                        <section>
                            <div class="heading">
                                <table>
                                    <tr>
                                        <td>
                                            <img src="images/title/spzx.png" alt="视频中心" /></td>
                                        <td><a id="A3" href="~/aspx/video/Default.aspx"
                                            runat="server">更多>></a></td>
                                    </tr>
                                </table>
                            </div>
                            <div class="content">
                                <ul class="list">
                                    <asp:Repeater ID="rpt视频中心" runat="server" DataSourceID="ods最新发布" OnItemDataBound="rpt视频中心_ItemDataBound">
                                        <ItemTemplate>
                                            <li>
                                                <asp:HyperLink NavigateUrl='<%# Eval("视频ID") %>' Text='<%# Eval("标题") %>'  runat="server" ID="hy" Visible="false" />
                                            </li>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </ul>
                            </div>
                        </section>
                    </td>
                    <td class="col04 sidebar">
                        <section>
                            <div class="heading">

                                <img src="images/title/yqlj.png" alt="友情链接" />
                            </div>
                            <div class="content">
                                <ul class="list">

                                    <asp:Repeater ID="Repeater3" runat="server" DataSourceID="ods_友情链接">
                                        <ItemTemplate>
                                            <li><a href='<%# Eval("链接") %>'>
                                                <%# Eval("显示") %></a></li>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </ul>
                            </div>
                        </section>
                    </td>
                </tr>
            </table>
        </div>
        <div class="col16 sidebar" style="height: 160px">

            <section>
                <div class="heading">
                    <img src="images/title/hdly.png" alt="活动掠影" />
                </div>
                <div class="content" style="height: 120px">
                    <div class="slider autoplay">
                        <asp:Repeater ID="Repeater6" runat="server" DataSourceID="ods活动掠影" EnableViewState="True">
                            <ItemTemplate>
                                <div>
                                    <a href='activity.aspx?id=<%# Eval("活动掠影ID") %>' title='<%# Eval("名称") %>' >
                                        <img id="Img1" src='<%# Eval("小图片") %>' alt="" runat="server" width="170" /></a>
                                </div>
                            </ItemTemplate>
                        </asp:Repeater>
                    </div>
                </div>
            </section>
        </div>
    </form>
    <asp:ObjectDataSource runat="server" ID="ods最新发布" OldValuesParameterFormatString="original_{0}"
        SelectMethod="GetDataBy最新发布" TypeName="ds_名师讲堂TableAdapters.tb_视频TableAdapter" />
    <asp:ObjectDataSource ID="ods讲堂动态" runat="server" OldValuesParameterFormatString="original_{0}"
        SelectMethod="GetDataBy最近5个" TypeName="ds_名师讲堂TableAdapters.tb_讲堂TableAdapter"></asp:ObjectDataSource>
    <asp:ObjectDataSource ID="ods新闻中心" runat="server" OldValuesParameterFormatString="original_{0}"
        SelectMethod="GetDataBy前5个显示" TypeName="ds_名师讲堂TableAdapters.tb_新闻中心TableAdapter"></asp:ObjectDataSource>
    <asp:ObjectDataSource runat="server" ID="ods_友情链接" SelectMethod="GetData" OldValuesParameterFormatString="original_{0}"
        TypeName="ds_名师讲堂TableAdapters.tb_友情链接TableAdapter"></asp:ObjectDataSource>
    <asp:ObjectDataSource ID="ods通知公告" runat="server" OldValuesParameterFormatString="original_{0}"
        SelectMethod="GetDataBy前5个显示" TypeName="ds_名师讲堂TableAdapters.tb_通知公告TableAdapter"></asp:ObjectDataSource>
    <asp:ObjectDataSource ID="ods滚动大图片" runat="server" OldValuesParameterFormatString="original_{0}"
        SelectMethod="GetData" TypeName="ds_名师讲堂TableAdapters.tb_滚动图片TableAdapter"></asp:ObjectDataSource>
    <asp:ObjectDataSource ID="ods名师风采" runat="server" OldValuesParameterFormatString="original_{0}"
        SelectMethod="GetDataBy显示在首页" TypeName="ds_名师讲堂TableAdapters.tb_名师风采TableAdapter"></asp:ObjectDataSource>
    <asp:ObjectDataSource ID="ods活动掠影" runat="server" OldValuesParameterFormatString="original_{0}"
        SelectMethod="GetDataBy显示" TypeName="ds_名师讲堂TableAdapters.tb_活动掠影TableAdapter"
        DeleteMethod="Delete" InsertMethod="Insert" UpdateMethod="Update">
        <SelectParameters>
            <asp:Parameter DefaultValue="True" Name="显示" Type="Boolean" />
        </SelectParameters>
    </asp:ObjectDataSource>

    <asp:ObjectDataSource ID="ods讲堂简介" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetDataByTOP1" TypeName="ds_名师讲堂TableAdapters.tb_讲堂简介TableAdapter"></asp:ObjectDataSource>
    </form>
</asp:Content>